<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">付款管理</h1>
</div>
<div class="wrapper-sm" ng-controller="FeeSettlePayMangerCtrl">
	<div class="panel panel-default">
		<div class="panel-heading font-bold">查询</div>
		<div class="panel-body">
			<label class="control-label pull-left m-t-xs w-xs">应付总编号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="fa-searchz-feeSettleBillCode" ng-model="feeSettleBillCode" placeholder="请输入应付总编号" name="feeSettleBillCode">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算承运商</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="fa-searchz-carrierName" ng-model="carrierName" placeholder="请输入结算承运商" name="carrierName">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">付款方式</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" name="paymentMethod" ng-model="paymentMethod" ng-options="x.value as x.text for x in paymentMethodList">
					<option value="">全部</option>
				</select>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">合同号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="fa-searchz-contractNumber" ng-model="contractNumber" placeholder="合同号" name="contractNumber">
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">结算起始时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="dataTime" datetimepicker plugintype="datetime" ng-model="startTime" placeholder="起始时间" class="form-control" type="text"
					/>
					<span id="opendataTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算结束时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="dataTimeEnd" datetimepicker plugintype="datetime" ng-model="endTime" placeholder="结束时间" class="form-control" type="text"
					/>
					<span id="opendataTimeEnd" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算人员</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" ng-model="reckonerId" name="reckoner" ng-options="x.id as x.realName for x in reckonerList">
					<option value="">全部</option>
				</select>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">费用状态</label>
			<div class="col-md-2 form-group">
				<select class="form-control input-sm" ng-model="feeStatus" name="feeStatu" ng-options="x.value as x.text for x in feeStatusEnumList">
					<option value="">全部</option>
				</select>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left w-xs"></label>
			<div class="col-md-2 col-xs-12"></div>
			<label class="control-label pull-left w-xs"></label>
			<div class="col-md-2 col-xs-12"></div>
			<label class="control-label pull-left w-xs"></label>
			<div class="col-md-2 col-xs-12"></div>
			<label class="control-label pull-left m-t-xs w-xs"></label>
			<div class="col-md-2 col-xs-12">
				<button ng-click="Seek()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
                </button>
			</div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			付款列表
		</div>
		<div class="table-responsive">
			<div ui-grid="feeSettleBillList" ui-grid-selection ui-grid-pagination ui-grid-auto-resize style="height:{{heightA}}px; min-width:1000px; min-height:395px; overflow-y:hidden;">
				<div class="watermark" ng-if="!feeSettleBillList.data.length">暂无数据</div>
			</div>
		</div>
		<div class="panel-body">
			<label class="pull-left control-label">已选中费用</label>
			<div class="col-lg-7">
				<span class="ui-select-bootstrap dropdown form-control">
                    <span ng-repeat="item in feeSelectedList">
                        <span style="margin-right: 3px; margin-bottom:3px;" class="ui-select-match-item btn btn-default btn-xs">
                            <span class="close ui-select-match-close" ng-click="delFee(item.id,item.feeBillCode)">&nbsp;×</span>
				<span>{{item.feeBillCode}}</span>
				</span>
				</span>
				</span>
			</div>
			<div class="line  pull-in"></div>
			<div class="form-group pull-left">
				<button ng-click="selectAll()" class="pull-right-xs btn btn-sm btn-success btn-addon "><i class="fa fa-check-square-o"></i>全选</button>
				<button class="pull-right-xs btn btn-sm btn-danger btn-addon" ng-if="canSettleReturn" ng-click="settleReturn()"><i class="fa fa-mail-reply-all"></i>退回</button>
				<button class="pull-right-xs btn btn-sm btn-success btn-addon" ng-if="canSettlePay" ng-click="settlePay()"><i class="fa fa-check-circle"></i>付款</button>
				<button class="pull-right-xs btn btn-sm btn-info btn-addon" ng-click="settleDetail()"><i class="fa fa-eye"></i>查看详情</button>
				<button ng-click="excel()" class="pull-right-xs btn btn-sm btn-success btn-addon "><i class="fa fa-download"></i>导出</button>
			</div>
		</div>
	</div>
</div>